package com.hdoit.ares.logical.viewmodel.official;

import com.tennetcn.common.message.ListItem;


public class TreeListItem extends ListItem{
	private String id;

	private String parentId;
	
	private boolean click;
	
	private boolean open;
	
	/*private String theme;*/

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public boolean isClick() {
		return click;
	}

	public void setClick(boolean click) {
		this.click = click;
	}

	public boolean isOpen() {
		return open;
	}

	public void setOpen(boolean open) {
		this.open = open;
	}
	
	/*public String getTheme() {
		return theme;
	}

	public void setTheme(String theme) {
		this.theme = theme;
	}*/

	public TreeListItem(){
		this.click=true;
		this.open=true;
	}
	
	public static TreeListItem getTopLevel(){
		TreeListItem treeListItem = new TreeListItem();
		treeListItem.setId("0");
		treeListItem.setParentId("-1");
		treeListItem.setText("全部分类");
		treeListItem.setValue("0");
	/*	treeListItem.setIcon("icon-home");*/
	/*	treeListItem.setTheme("text-primary");*/
		return treeListItem;
	}

}
